package org.ch00.test00;

/*
 *
 *@author XCH
 *@date 2025 - 03 - 03
 *
 */
public class MusicalInstrument {
    private String name;
    private String brand;

    public MusicalInstrument(String name, String brand) {
        this.name = name;
        this.brand = brand;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void play() {
        System.out.println("演奏音乐");
    }
    public void play(String name) {
        System.out.println("演奏音乐" + name);
    }
}
